const R = require('ramda')


const resolvePath = R.unless(
    R.startsWith('/'),
    R.curryN(2, R.concat)('/')
)

console.log(resolvePath('b/c'))